const Home = () => import('pages/Home')
const Mall = () => import('pages/Mall')
const Detail = () => import('pages/Detail')
const Setting = () => import('pages/Setting')
const Cart = () => import('pages/Cart')
const Login = () => import('pages/Login')
const Mall1 = () => import('pages/Mall1')

const routes = [{
  path: '/',
  redirect: '/home'
}, {
  path: '/home',
  name: 'home',
  title: '首页',
  isNav: true,
  component: Home,
  icon: '&#xe69d;'
}, {
  path: '/mall',
  name: 'mall',
  title: '商城',
  isNav: true,
  component: Mall,
  icon: '&#xe64e;'
}, {
  path: '/mall1',
  name: 'mall1',
  title: '商城',
  isNav: false,
  component: Mall1,
  icon: '&#xe64e;'
}, {
  path: '/cart',
  name: 'cart',
  title: '购物车',
  isNav: true,
  component: Cart,
  icon: '&#xe899;',
  meta: {
    isAuthority: true
  }
}, {
  path: '/detail',
  name: 'detail',
  title: '详情',
  component: Detail,
  props: true
}, {
  path: '/setting',
  name: 'setting',
  title: '我的',
  isNav: true,
  component: Setting,
  icon: '&#xe62e;'
}, {
  path: '/login',
  name: 'login',
  title: '登陆',
  isNav: false,
  component: Login
}]

export default routes
